Skip to content

Instantly share code, notes, and snippets.

@eNV25
eNV25 / hp-bios-update.md
Last active December 8, 2025 18:37
Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

Instructions to Update the BIOS/UEFI for an HP Laptop on Linux

To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.

On a Linux system, the ESP is typically mounted on /boot/efi or /efi. Whithin you should also find a EFI directory, e.g. /boot/efi/EFI or /efi/EFI. This article assumes that the ESP is mounted on /efi and that the /efi/EFI directory exists. You can replace that with the mount point your system uses.

The HP-specific files are located in /efi/EFI/HP or /efi/EFI/Hewlet-Packard. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.

@micjabbour
micjabbour / CMakeLists.txt
Last active December 8, 2025 18:35
Suppress Windows Error Reporting crash dialogs
cmake_minimum_required(VERSION 3.2)
project(suppress_wer)
option(USE_DEBUGGER_BASED_SOLUTION "Uses a debugger-based solution instead of SetErrorMode. See suppress_wer_debugger.cpp for details" OFF)
if(USE_DEBUGGER_BASED_SOLUTION)
add_executable(suppress_wer suppress_wer_debugger.cpp)
else()
add_executable(suppress_wer suppress_wer_set_error_mode.cpp)
endif()
@Priler
Priler / pywebio_online_chat.py
Created October 22, 2021 12:53
Simple online chat on Python in less than 100 lines of code
import asyncio
from pywebio import start_server
from pywebio.input import *
from pywebio.output import *
from pywebio.session import defer_call, info as session_info, run_async, run_js
chat_msgs = []
online_users = set()
@osama2kabdullah
osama2kabdullah / Tailwind CSS with Shopify Theme.md
Created June 12, 2023 08:45
How to add Tailwind CSS in a shopify theme in development mode only

Add Tailwind CSS in Shopify Theme

  1. Initial node.js package manager with npm or yarn by running
yarn init -y 
#or
npm init -y
@Dragost
Dragost / PDF Manual Downloader Script.md
Last active December 8, 2025 18:32
PDF Manual Downloader Script <manualpdf.es>

PDF Manual Downloader Script

This script is designed to download PDF manuals from wdhmedia websites. It can be run on any operating system that supports Python, maybe.

This is not the most correct or fastest way to download PDFs, but it works.

Tested with python 3.10 and Poetry.

Quickstart: GLM-4.6V-Flash with mlx-vlm on macOS (Apple Silicon)

This guide walks you through setting up a minimal project that uses mlx-vlm to run the

mlx-community/GLM-4.6V-Flash-4bit vision model on a sample image.

1. Install uv (if not installed)

@4piu
4piu / README.md
Created June 13, 2025 08:09
Route Tailscale exit node traffic to Wireguard

This script enables you to forward all traffic from a Tailscale exit node through a WireGuard tunnel.

Most mobile devices support only one active VPN connection at a time. As a result, users can't simultaneously use Tailscale for connectivity and route their internet traffic through another VPN. This script provides a workaround by turning a Tailscale exit node into a VPN bridge. When clients use this special exit node, their internet traffic is protected by the VPN while still maintaining Tailscale connectivity.

Requirements:

  • Enable forwarding
  • Tailscale need to run with --netfilter-mode=[off|nodivert] for manual routing control
  • Set Table = off in Wireguard config to manual control ip rules
  • Set PostUp and PreDown script in Wireguard config
@tripathi-suraj
tripathi-suraj / NodeJs.md
Last active December 8, 2025 18:28
NodeJs Interview Questions

1.What is Nodejs?

Node.js is an extremely powerful framework developed on Chrome’s V8 JavaScript engine that compiles the JavaScript directly into the native machine code. Node.js is perfect for data-intensive applications as it uses an asynchronous, event-driven model. You can use I/O intensive web applications like video streaming sites.

How Nodejs Works

2.What is Node.js Process Model?

Node.js runs in a single process and the application code runs in a single thread and thereby needs less resources than other platforms. All the user requests to your web application will be handled by a single thread and all the I/O work or long running job is performed asynchronously for a particular request. So, this single thread doesn't have to wait for the request to complete and is free to handle the next request. When asynchronous I/O work completes then it processes the request further and sends the response.

3.How do

@neilsmithdesign
neilsmithdesign / swift-ui-protocol-view-models.swift
Last active December 8, 2025 18:28
SwiftUI views with protocol interfaces to view models.
import SwiftUI
/// View model protocol
protocol ViewModel: ObservableObject {
var count: Int { get }
func increase()
}
/// Concrete implementation
class MyViewModel: ViewModel {
@Jotunn
Jotunn / Battlefield_6_sens.md
Last active December 8, 2025 18:25
Battlefield 6 PC Sensitivity Guide

Battlefield PC Sensitivity (BF6)

All of what you read below applies to Battlefield 6, as tested in Labs and the Open Beta, including my own personal settings, summarized at the bottom of this sheet.

Why should you care?

This is the new version of my old guide for BF4 through BF2042, for Battlefield 6. BF6 uses a revised mouse input system with a lower base sensitivity and a higher max sensitivity, and by quite a lot too. Editable both in-game with decimal points via arrow keys, and in config files, with input that isn't just emulated controller input like 2042, it's a paradise by comparison.

If you wish to more finely tune your sensitivity, keep reading.